package com.company.example.service;

import java.io.Serializable;
import java.util.List;

public interface BaseService<T, PK extends Serializable> {
	boolean insert(T t);
	boolean delete(PK pk);
	boolean update(T t);
	T selectByPrimaryKey(PK pk);
	List<T> selectAllObjects();
	int selectTotalRows();
}
